package com.ruoyi.maintain.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.maintain.mapper.CheMaintainMapper;
import com.ruoyi.maintain.domain.CheMaintain;
import com.ruoyi.maintain.service.ICheMaintainService;

/**
 * 维修任务Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-02
 */
@Service
public class CheMaintainServiceImpl implements ICheMaintainService 
{
    @Autowired
    private CheMaintainMapper cheMaintainMapper;

    @Override
    public List<CheMaintain> selectCheMaintains(CheMaintain cheMaintain) {
        return cheMaintainMapper.selectCheMaintains(cheMaintain);
    }

    /**
     * 查询维修任务
     * 
     * @param id 维修任务主键
     * @return 维修任务
     */
    @Override
    public CheMaintain selectCheMaintainById(Long id)
    {
        return cheMaintainMapper.selectCheMaintainById(id);
    }

    /**
     * 查询维修任务列表
     * 
     * @param cheMaintain 维修任务
     * @return 维修任务
     */
    @Override
    public List<CheMaintain> selectCheMaintainList(CheMaintain cheMaintain)
    {
        return cheMaintainMapper.selectCheMaintainList(cheMaintain);
    }

    /**
     * 新增维修任务
     * 
     * @param cheMaintain 维修任务
     * @return 结果
     */
    @Override
    public int insertCheMaintain(CheMaintain cheMaintain)
    {
        return cheMaintainMapper.insertCheMaintain(cheMaintain);
    }

    /**
     * 修改维修任务
     * 
     * @param cheMaintain 维修任务
     * @return 结果
     */
    @Override
    public int updateCheMaintain(CheMaintain cheMaintain)
    {
        return cheMaintainMapper.updateCheMaintain(cheMaintain);
    }

    /**
     * 批量删除维修任务
     * 
     * @param ids 需要删除的维修任务主键
     * @return 结果
     */
    @Override
    public int deleteCheMaintainByIds(Long[] ids)
    {
        return cheMaintainMapper.deleteCheMaintainByIds(ids);
    }

    /**
     * 删除维修任务信息
     * 
     * @param id 维修任务主键
     * @return 结果
     */
    @Override
    public int deleteCheMaintainById(Long id)
    {
        return cheMaintainMapper.deleteCheMaintainById(id);
    }
}
